import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import "@/assets/styles/index.scss";

/* 引入Element-Plus插件 */
import ElementPlus from "element-plus";
/* 引入Element-Plus样式 */
import "element-plus/dist/index.css";

import { autoAnimatePlugin } from "@formkit/auto-animate/vue";

const app = createApp(App);

// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app
  .use(router)
  .use(ElementPlus, { size: "small" })
  .use(autoAnimatePlugin)
  .mount("#app");
